﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyWeb.ServiceBus.Model.Models
{
    /// <summary>
    /// 接口文档
    /// </summary>
    [Table("ESB.InterfaceDoc")]
    public class InterfaceDoc
    {
        public long Id { get; set; }
        public long InterfaceId { get; set; } = 0;
        /// <summary>
        /// 类型 0:Header、1:Body、2:Respond
        /// </summary>
        public int Type { get; set; } = 0;
        /// <summary>
        /// 参数名称
        /// </summary>
        public string? Parameter { get; set; } = string.Empty;
        /// <summary>
        /// 参数类型
        /// </summary>
        public string? ParamType { get; set; } = string.Empty;
        /// <summary>
        /// 是否必填
        /// </summary>
        public bool IsMust { get; set; }
        /// <summary>
        /// 默认值
        /// </summary>
        public string? DefaultValue { get; set; } = string.Empty;
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; } = string.Empty;
        /// <summary>
        /// 父级Id
        /// </summary>
        public long Pid { get; set; } = 0;
    }
}
